const Router = require('koa-router')
const { searchSponsor,addList,editList,deleteList,getOneList } = require('../controller/sponsor.cotroller')
const router = new Router({prefix:'/sponsor'})
const { auth } = require("../middleware/admin.middleware")
router.post('/list',searchSponsor)
router.post('/add',auth,addList)
router.post('/edit',auth,editList)
router.post('/delete',auth,deleteList)
router.post('/detail',auth,getOneList)
module.exports = router